package com.remon.quartz.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 任务详情
 *
 * @author remon
 * @create 2018-09-09 11:51
 **/
@Entity
@Table(name = "QRTZ_JOB_DETAILS")
@NoArgsConstructor
@AllArgsConstructor
@Data
public class QrtzJobDetails {

    /**
     * 设计器名称
     */
    @Id
    @Column(name = "SCHED_NAME")
    private String schedName;
    /**
     * 任务名称
     */
    @Column(name = "JOB_NAME")
    private String jobName;
    /**
     * 任务组别
     */
    @Column(name = "JOB_GROUP")
    private String jobGroup;
    /**
     * 任务描述
     */
    @Column(name = "DESCRIPTION")
    private String description;
    /**
     * 任务执行类名
     */
    @Column(name = "JOB_CLASS_NAME")
    private String jobClassName;

    /**
     * 是否持久
     */
    @Column(name = "IS_DURABLE")
    private String isDurable;

    /**
     * 是否非并发
     */
    @Column(name = "IS_NONCONCURRENT")
    private String isNonconcurrent;
    /**
     * 是否更新数据
     */
    @Column(name = "IS_UPDATE_DATA")
    private String isUpdateData;
    /**
     * 请求恢复
     */
    @Column(name = "REQUESTS_RECOVERY")
    private String requestsRecovery;
    /**
     * 任务数据
     */
    @Column(name = "JOB_DATA")
    private byte[] jobData;
}
